package com.yourwork.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.yourwork.model.Consumption;
/**
 * 消费记录*/
public interface ConsumptionDao {
	//分页查询
	public Page<Consumption> queryRecord(Pageable pageable);
	//添加用户消费记录
	public void insertRecord(Consumption record);
	//统计消费记录总条数
	public int countRecord();
	//查询所有有服务记录的员工工号
	public List<String> queryNumber();
	//分页查询服务记录员工的工号
	public List<String> queryNumber(Pageable pageable);
	//查询员工的详细服务信息
	public List<Consumption> querySalaryDetails(String number);
	//员工工号总数
	public int countNumber();
	//员工服务的总数
	public int countSalaryDetails(String number);
	//分页查询员工详情
	public List<Consumption> querySalaryDetails(String number, Pageable pageable);

}
